package entities;

import menu.Settings;

import org.newdawn.slick.GameContainer;
import org.newdawn.slick.SlickException;

public class FollowingEnemyHard extends FollowingEnemy {

	private Weapon weapon;

	public FollowingEnemyHard(Entity target) throws SlickException {
		super(target);
		destroyOffScreenX = false;
		destroyOffScreenY = false;

		friction = 3;
		health = (int) (12 * Settings.getfactor());
		score = 130;
		weapon = new SimpleWeapon("res/shot.png", 1, this, 2000);
	}

	@Override
	public void update(GameContainer gc, int delta) {
		super.update(gc, delta);
		weapon.shoot(level.getPlayer().center().subtract(center())
				.getUnitVector().scale(200));
	}
}
